package org.crackjack.android.util;

import java.util.List;

import org.crackjack.android.model.Appointment;

public class AppointmentUtil {

    public static Appointment getAppoitmentById(Long id, List<Appointment> appointments) {
        for (Appointment appointment : appointments) {
            if (appointment.getId().longValue() == id.longValue()) {
                return appointment;
            }
        }
        return null;
    }

}
